package bean;

public class JenisKeretaApiBean {
	private String idJenisKa;
	private float maxSpeed;
	
	public String getIdJenisKa() {
		return idJenisKa;
	}
	public void setIdJenisKa(String idJenisKa) {
		this.idJenisKa = idJenisKa;
	}
	public float getMaxSpeed() {
		return maxSpeed;
	}
	public void setMaxSpeed(float maxSpeed) {
		this.maxSpeed = maxSpeed;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((idJenisKa == null) ? 0 : idJenisKa.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		JenisKeretaApiBean other = (JenisKeretaApiBean) obj;
		if (idJenisKa == null) {
			if (other.idJenisKa != null)
				return false;
		} else if (!idJenisKa.equals(other.idJenisKa))
			return false;
		return true;
	}
	
}
